﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HotelManager
{
    public class RentInfo
    {
        public Person Guest { get; set; }
        public Room RentedItem { get; set; }
        public DateTime RentFrom { get; set; }
        public int Duration { get; set; }
        public DateTime LeaveDate { get { return this.RentFrom.AddDays(this.Duration); } }
    
        public RentInfo(Person guest, Room item, DateTime rentFrom, int duration) : this()
        {
            this.Guest = guest;
            this.RentedItem = item;
            this.RentFrom = rentFrom;
            this.Duration = duration;
        }

        public RentInfo()
        {

        }
    }
}
